(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63178,e=>{"use strict";var t=e.i(71645),r=(e,t,r,n,s,a,o,l)=>{let i=document.documentElement,m=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&a?s.map(e=>a[e]||e):s;r?(i.classList.remove(...n),i.classList.add(a&&a[t]?a[t]:t)):i.setAttribute(e,t)}),r=t,l&&m.includes(r)&&(i.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=o&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},n=["light","dark"],s="(prefers-color-scheme: dark)",a="u"{},themes:[]},i=()=>{var e;return null!=(e=t.useContext(o))?e:l},m=e=>t.useContext(o)?t.createElement(t.Fragment,null,e.children):t.createElement(d,{...e}),c=["light","dark"],d=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:a=!0,enableColorScheme:l=!0,storageKey:i="theme",themes:m=c,defaultTheme:d=a?"system":"light",attribute:p="data-theme",value:b,children:g,nonce:v,scriptProps:T})=>{let[w,S]=t.useState(()=>h(i,d)),[C,E]=t.useState(()=>"system"===w?f():w),k=b?Object.values(b):m,A=t.useCallback(e=>{let t=e;if(!t)return;"system"===e&&a&&(t=f());let s=b?b[t]:t,o=r?y(v):null,i=document.documentElement,m=e=>{"class"===e?(i.classList.remove(...k),s&&i.classList.add(s)):e.startsWith("data-")&&(s?i.setAttribute(e,s):i.removeAttribute(e))};if(Array.isArray(p)?p.forEach(m):m(p),l){let e=n.includes(d)?d:null,r=n.includes(t)?t:e;i.style.colorScheme=r}null==o||o()},[v]),L=t.useCallback(e=>{let t="function"==typeof e?e(w):e;S(t);try{localStorage.setItem(i,t)}catch(e){}},[w]),P=t.useCallback(t=>{E(f(t)),"system"===w&&a&&!e&&A("system")},[w,e]);t.useEffect(()=>{let e=window.matchMedia(s);return e.addListener(P),P(e),()=>e.removeListener(P)},[P]),t.useEffect(()=>{let e=e=>{e.key===i&&(e.newValue?S(e.newValue):L(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[L]),t.useEffect(()=>{A(null!=e?e:w)},[e,w]);let O=t.useMemo(()=>({theme:w,setTheme:L,forcedTheme:e,resolvedTheme:"system"===w?C:w,themes:a?[...m,"system"]:m,systemTheme:a?C:void 0}),[w,L,e,C,a,m]);return t.createElement(o.Provider,{value:O},t.createElement(u,{forcedTheme:e,storageKey:i,attribute:p,enableSystem:a,enableColorScheme:l,defaultTheme:d,value:b,themes:m,nonce:v,scriptProps:T}),g)},u=t.memo(({forcedTheme:e,storageKey:n,attribute:s,enableSystem:a,enableColorScheme:o,defaultTheme:l,value:i,themes:m,nonce:c,scriptProps:d})=>{let u=JSON.stringify([s,n,l,e,m,i,a,o]).slice(1,-1);return t.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"u"{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},y=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},f=e=>(e||(e=window.matchMedia(s)),e.matches?"dark":"light");e.s(["ThemeProvider",()=>m,"useTheme",()=>i])},40402,e=>{"use strict";var t=e.i(43476),r=e.i(63178);function n({children:e}){return(0,t.jsx)(r.ThemeProvider,{attribute:"class",defaultTheme:"light",enableSystem:!1,disableTransitionOnChange:!0,children:e})}e.s(["ThemeProvider",()=>n])}]);